<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="jquery.js"></script>

  <script type="text/javascript">

    $(function () {
      $("#test").on("click",function () {
        test();

      });
      $("#testPaging").on("click",function () {
        testPaging();

      });
      $("#testGetById").on("click",function () {
        testGetById();

      });
      $("#listPayInfo").on("click",function () {
        listPayInfo();

      });
      $("#addServiceOrderUpdateApply").on("click",function () {
        addServiceOrderUpdateApply();

      });
      $("#listMyRecieveUpdateApply").on("click",function () {
        listMyRecieveUpdateApply();

      });
      $("#listApplerUpdateApply").on("click",function () {
        listApplerUpdateApply();

      });
      $("#getOrderByOApplyId").on("click",function () {
        getOrderByOApplyId();

      });
      $("#updateServiceOrder").on("click",function () {
        updateServiceOrder();

      });
      $("#findDetailById").on("click",function () {
        findDetailById();

      });

      $("#addGroupChargerPerson").on("click",function () {
        addGroupChargerPerson();

      });
      $("#addPay").on("click",function () {
        addPay();

      });
      $("#getPayItmesByOrderNo").on("click",function () {
        getPayItmesByOrderNo();

      });
      $("#vaddPay").on("click",function () {
        vaddPay();

      });
      $("#setGroupIsBack").on("click",function () {
        setGroupIsBack();
      });
      $("#setGroupIsClose").on("click",function () {
        setGroupIsClose();
      });
      $("#exportWord").on("click",function () {
        exportWord();
      });
      $("#agreeServiceOrderUpdateApply").on("click",function () {
        agreeServiceOrderUpdateApply();
      });
      $("#rejectServiceOrderUpdateApply").on("click",function () {
        rejectServiceOrderUpdateApply();
      });
      $("#updateOrderToConfirm").on("click",function () {
        updateOrderToConfirm();
      });
      $("#updateOrderToClose").on("click",function () {
        updateOrderToClose();
      });
      $("#updateOrderToFinish").on("click",function () {
        updateOrderToFinish();
      });
      $("#addAgency").on("click",function () {
        addAgency();
      });

    });
    var test = function () {
      // alert('----');
      var arrays = Array();
      arrays.push("2018112600013001394360");
      arrays.push("2018113015201095712585");
      var sendData = JSON.stringify(arrays);
      // var sendData = JSON.stringify("2018113015201095712585");
      $.ajax({

        url:'http://localhost:8180/flea/hclv/visitor/visitorPay/listRebackRecoder.htmls',
        data:{"model":"2018113015201095712585"},
        success:function (data) {
          // console.log(data);
        }
      })
    }
    /**
     * 测试分页显示列表数据
     */
    var testPaging = function () {
      // alert('----');

      var paing ={
        index:1,
        pageSize:10
      }
      var sendData = JSON.stringify(paing);
      // var sendData = JSON.stringify("2018113015201095712585");
      $.ajax({
        url:'http://localhost:8180/flea/hclv/visitor/visitorPay/listRebackRecoder.htmls',
        data:paing,
        success:function (data) {
          // console.log(data);
        }
      })
    }
  </script>
</head>
<body>
<div>
  <div>


  </div>
  <button id="test" value="test">name</button>
  <button id="testPaging" value="testPaging">paging</button>
  <div>
    <p>
      1、url:'http://localhost:8180/flea/hclv/visitor/order/setSuccessOrder.htmls
      data：
      arrays.push("2018112600013001394360");
      arrays.push("2018113015201095712585");
      var sendData = JSON.stringify(arrays);
      订单完成
    </p>
    </br>
    <p>
      2、 url:'http://localhost:8180/flea/hclv/visitor/order/closeOrder.htmls
      data：
      arrays.push("2018112600013001394360");
      arrays.push("2018113015201095712585");
      var sendData = JSON.stringify(arrays);
      关闭订单（取消的）
      </br>
    </p>
    <p>
      3、url:'http://localhost:8180/flea/hclv/visitor/order/cancelOrder.htmls',
      data：{"model":"2018113015201095712585"}
      取消订单
      </br>
    </p>
    <p>
      4、 url:'http://localhost:8180/flea/hclv/visitor/visitorPay/listRebackRecoder.htmls',
      data:paing,
      var paing ={
      index:1,
      pageSize:10
      }
      退款记录
      </br>
    </p>
    <p>
      5、根据订单id获取服务订单详情
      url:'//localhost:8180/hclv-web/flea/hclv/serviceOrder/findDetailById.htmls' model='orderId',
    <div>结果</div><div id="result"></div>


    </p>
    <button id="testGetById" value="testPaging">根据订单id获取服务订单详情</button>
    <script>
      var testGetById = function() {
        $.ajax({
          url: '//localhost:8180/hclv-web/flea/hclv/serviceOrder/findDetailById.htmls',
          data: {'model': '0ed6784e009245239d2973175176d388'},
          success: function (data) {
            $('#result').text(JSON.stringify(data.model));
          }
        })
      }
    </script>
    <p>
      6、根据订单号 获取支付信息
      url:'http://localhost:8180/flea/hclv/visitor/visitorPay/listPayInfo.htmls' model='orderNo',
    <div>结果</div><div id="resultlistPayInfo"></div>


    </p>

    <button id="listPayInfo" value="testPaging">根据订单号 获取支付信息</button>
    <script>
      var listPayInfo = function() {
        $.ajax({
          url: 'http://localhost:8180/flea/hclv/visitor/visitorPay/listPayInfo.htmls',
          data: {'model': "2018112820183346862803"},
          success: function (data) {
            $('#resultlistPayInfo').text(JSON.stringify(data.model));
          }
        })
      }
    </script>

  </div>
  <p>
    7、添加修改订单申请
    url:''http://localhost:8180/hclv-web/flea/hclv/serviceOrder/addServiceOrderUpdateApply.htmls'
  <pre>
    data: {'model': JSON.stringify({
    applerName:"王可",
    applerPhone:"18291717989",
    serverOrderNo:"HS2018113015513737423325",
    applerReason:"我就是想给你优惠一下，将价格修改成1块钱",
    })}
  </pre>
  <div>结果</div><div id="resultlisAddServiceOrderUpdateApply"></div>
  </p>
  <button id="addServiceOrderUpdateApply" value="addServiceOrderUpdateApply">添加修单申请</button>
  <script>
    var addServiceOrderUpdateApply = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/addServiceOrderUpdateApply.htmls',
        data: {'model': JSON.stringify({
            applerName:"王可",
            applerPhone:"18291717989",
            serverOrderNo:"HS2018113015513737423325",
            applerReason:"我就是想给你优惠一下，将价格修改成1块钱",
          })},
        type:'post',
        success: function (data) {
          $('#resultlisAddServiceOrderUpdateApply').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    8、我接到的申请
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/listMyRecieveUpdateApply.htmls'
  <pre>

  </pre>
  <div>结果</div><div id="resultListMyRecieveUpdateApply"></div>
  </p>
  <button id="listMyRecieveUpdateApply" value="listMyRecieveUpdateApply">我接收到的申请</button>
  <script>
    var listMyRecieveUpdateApply = function() {
      var paing ={
        index:1,
        pageSize:10
      }
      var sendData = JSON.stringify(paing);
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/listMyRecieveUpdateApply.htmls',
        data:sendData,
        type:'post',
        success: function (data) {
          $('#resultListMyRecieveUpdateApply').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    9、我提出的申请
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/listApplerUpdateApply.htmls'
  <pre>

  </pre>
  <div>结果</div><div id="resultListlistApplerUpdateApply"></div>
  </p>
  <button id="listApplerUpdateApply" value="listMyRecieveUpdateApply">我提出的申请</button>
  <script>
    var listApplerUpdateApply = function() {
      var paing ={
        index:1,
        pageSize:10
      }
      var sendData = JSON.stringify(paing);
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/listMyRecieveUpdateApply.htmls',
        data:sendData,
        type:'post',
        success: function (data) {
          $('#resultListlistApplerUpdateApply').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    10、根据申请id，获取服务订单
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/getOrderByOApplyId.htmls'
  <pre>
data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
  </pre>
  <div>结果</div><div id="resultgetOrderByOApplyId"></div>
  </p>
  <button id="getOrderByOApplyId" value="getOrderByOApplyId">根据申请修改id，获取订单</button>
  <script>
    var getOrderByOApplyId = function() {


      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/getOrderByOApplyId.htmls',
        data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
        type:'post',
        success: function (data) {
          $('#resultgetOrderByOApplyId').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    11、更新服务订单（待测）
    参数信息：申请id, applyId,价格 updateMoney
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateServiceOrder.htmls'
  <pre>
data:{applyId:'45258edfc1b946c1b1ca8f61a6a83fec',updateMoney:'4535.9'},
  </pre>
  <div>结果</div><div id="resultupdateServiceOrder"></div>
  </p>
  <button id="updateServiceOrder" value="updateServiceOrder">更新服务订单</button>
  <script>
    var updateServiceOrder = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateServiceOrder.htmls',
        data:{'model':JSON.stringify({"applyId":'45258edfc1b946c1b1ca8f61a6a83fec',"updateMoney":'4535.9'})},
        type:'post',
        success: function (data) {
          $('#resultgetupdateServiceOrder').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    12、根据订单id，获取订单详情
    url:'http://localhost:8180/hclv-web/flea/hclv/visitor/order/findDetailById.htmls'
  <pre>
data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
  </pre>
  <div>结果</div><div id="resultfindDetailById"></div>
  </p>
  <button id="findDetailById" value="findDetailById">根据订单Id获取订单详情</button>
  <script>
    var findDetailById = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/visitor/order/findDetailById.htmls',
        data:{model:'1be4d1b0e4e3400ba1e60c7593076a7f'},
        type:'post',
        success: function (data) {
          $('#resultfindDetailById').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    13、根据团id，指定负责人
    url:'http://localhost:8180/hclv-web/flea/hclv/htravelGroup/addGroupChargerPerson.htmls'
  <pre>
 data:{model:JOSN.stringify({
            "groupId":"aee819d000fd4dbc9e5ff89d226a75e6",
            "chargePersonName":"实力强",
             "chargePersonPhone":"18219717080"
          })},
  </pre>
  <div>结果</div><div id="resultaddGroupChargerPerson"></div>
  </p>
  <button id="addGroupChargerPerson" value="addGroupChargerPerson">根据团id，制定负责人</button>
  <script>
    var addGroupChargerPerson = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/htravelGroup/addGroupChargerPerson.htmls',
        data:{model:JSON.stringify({
            "groupId":"aee819d000fd4dbc9e5ff89d226a75e6",
            "chargePersonName":"实力强",
            "chargePersonPhone":"18219717080"
          })},
        type:'post',
        success: function (data) {
          $('#resultaddGroupChargerPerson').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
  <p>
    13-2、根据团id,设置为回团
    url:'http://localhost:8180/hclv-web/flea/hclv/htravelGroup/setGroupIsBack.htmls'
  <pre>
 data:{model:"aee819d000fd4dbc9e5ff89d226a75e6"},
  </pre>
  <div>结果</div><div id="resultsetGroupIsBack"></div>
  </p>
  <button id="setGroupIsBack" value="addGroupChargerPerson">回团操作</button>
  <script>
    var setGroupIsBack = function() {
      $.ajax({

        url: 'http://127.0.0.1:8180/hclv-web/flea/hclv/htravelGroup/setGroupIsBack.htmls',
        data:{model:"aee819d000fd4dbc9e5ff89d226a75e6",},
        type:'post',
        success: function (data) {
          $('#resultsetGroupIsBack').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
  <p>
    13-3、根据团id,设置为关闭团，本团完成
    url:'http://localhost:8180/hclv-web/flea/hclv/htravelGroup/setGroupIsClose.htmls'
  <pre>
 data:{model:"aee819d000fd4dbc9e5ff89d226a75e6"},
  </pre>
  <div>结果</div><div id="resultsetsetGroupIsClose"></div>
  </p>
  <button id="setGroupIsClose" value="setGroupIsClose">关闭团操作</button>
  <script>
    var setGroupIsClose = function() {
      $.ajax({

        url: 'http://127.0.0.1:8180/hclv-web/flea/hclv/htravelGroup/setGroupIsClose.htmls',
        data:{model:"aee819d000fd4dbc9e5ff89d226a75e6",},
        type:'post',
        success: function (data) {
          $('#setGroupIsClose').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
  <p>
    13-4、导出word产品
    url:'http://127.0.0.1:8180/hclv-web/flea/hclv/product/exportWord.htmls'
  <pre>
 data:{model:"aee819d000fd4dbc9e5ff89d226a75e6"},
  </pre>
  <div>结果</div><div id="resultexportWord"></div>
  </p>
  <button id="exportWord" value="exportWord">导出word</button>
  <form action="http://127.0.0.1:8180/hclv-web/flea/hclv/product/exportWord.htmls" method="post">
    <input type="productId" name="productId" value="22320d2cde554e0e93267642f7537395">
  <input type="submit" value="提交">

  </form>
  <script>
    var exportWord = function() {
      for(var i=0;i<100000000;i++){
        // console.log("bug");
      }
      $.ajax({

        url: 'http://127.0.0.1:8180/hclv-web/flea/hclv/product/exportWord.htmls',
        data:{model:"aee819d000fd4dbc9e5ff89d226a75e6",},
        type:'post',
        success: function (data) {
          $('#resultexportWord').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    14、服务订单支付
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/addPay.htmls'
  <pre>

  var item = {
       "payPlatform":"D_PAY_TYPE_CARD",
       "platformNumber":"20180201023188342342343",
       "payMoney":"1",

       "payUser":"张三"
  }
    var item2 = {
       "payPlatform":"D_PAY_TYPE_WECHAT",
       "platformNumber":"20180201023188342333343",
       "payMoney":"2",

       "payUser":"李四"
  }
      var item3 = {
       "payPlatform":"D_PAY_TYPE_ALIPAY",
       "platformNumber":"20180201023188342342344",
       "payMoney":"3",
       "payUser":"王五"
  }
 var arrays = Array();
 arrays.push(item);
  arrays.push(item2);
   arrays.push(item3);


  data:{model:JSON.stringify({
            "orderNo":"HS2018113015513737423325",
            "payItems":arrays
          })},
  </pre>
  <div>结果</div><div id="resultaddPay"></div>
  </p>
  <button id="addPay" value="addPay">服务订单支付</button>
  <script>


    var item = {
      "payPlatform":"D_PAY_TYPE_CARD",
      "platformNumber":"20180201023188342342343",
      "payMoney":"1",

      "payUser":"张三"
    }
    var item2 = {
      "payPlatform":"D_PAY_TYPE_WECHAT",
      "platformNumber":"20180201023188342333343",
      "payMoney":"2",

      "payUser":"李四"
    }
    var item3 = {
      "payPlatform":"D_PAY_TYPE_ALIPAY",
      "platformNumber":"20180201023188342342344",
      "payMoney":"3",
      "payUser":"王五"
    }
    var arrays = Array();
    arrays.push(item);
    arrays.push(item2);
    arrays.push(item3);

    var addPay = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/addPay.htmls',
        data:{model:JSON.stringify({
            "orderNo":"HS2018113015513737423325",
            "payItems":arrays
          })},
        type:'post',
        success: function (data) {
          $('#resultaddPay').text(JSON.stringify(data.model));
        }
      })
    }
  </script>

  <p>
    15、根据服务订单号，获取订单支付信息
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/getPayItmesByOrderNo.htmls'
  <pre>
data:{model:'HS2018113015513737423325'},
  </pre>
  <div>结果</div><div id="resultfindgetPayItmesByOrderNo"></div>
  </p>
  <button id="getPayItmesByOrderNo" value="getPayItmesByOrderNo">根据订单Id获取订单详情</button>
  <script>
    var getPayItmesByOrderNo = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/getPayItmesByOrderNo.htmls',
        data:{},
        type:'post',model:'HS2018113015513737423325',
        success: function (data) {
          $('#resultfindgetPayItmesByOrderNo').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <pre>

16
    var item = {
    "payPlatform":"D_PAY_TYPE_CARD",
    "platformNumber":"20180201023188342342343",
    "payMoney":"1",

    "payUser":"张三"
    }
    var item2 = {
    "payPlatform":"D_PAY_TYPE_WECHAT",
    "platformNumber":"20180201023188342333343",
    "payMoney":"2",

    "payUser":"李四"
    }
    var item3 = {
    "payPlatform":"D_PAY_TYPE_ALIPAY",
    "platformNumber":"20180201023188342342344",
    "payMoney":"3",
    "payUser":"王五"
    }
    var arrays = Array();
    arrays.push(item);
    arrays.push(item2);
    arrays.push(item3);

    var vaddPay = function() {
    $.ajax({

    url: 'http://localhost:8180/hclv-web/flea/hclv/visitor/visitorPay/addPayment.htmls',
    data:{model:JSON.stringify({
    "orderNo":"2018112820202369593969",
    "pays":arrays
    })},
    type:'post',
    success: function (data) {
    $('#resultaddPay').text(JSON.stringify(data.model));
    }
    })
    }
    </pre>
  <div>结果</div><div id="resultvaddPay"></div>

  <button id="vaddPay" value="vaddPay">游客订单支付</button>
  <script>


    var item = {
      "payPlatform":"D_PAY_TYPE_CARD",
      "platformNumber":"20180201023188342342343",
      "payMoney":"1",

      "payUser":"张三"
    }
    var item2 = {
      "payPlatform":"D_PAY_TYPE_WECHAT",
      "platformNumber":"20180201023188342333343",
      "payMoney":"2",

      "payUser":"李四"
    }
    var item3 = {
      "payPlatform":"D_PAY_TYPE_ALIPAY",
      "platformNumber":"20180201023188342342344",
      "payMoney":"3",
      "payUser":"王五"
    }
    var arrays = Array();
    arrays.push(item);
    arrays.push(item2);
    arrays.push(item3);

    var vaddPay = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/visitor/visitorPay/addPayment.htmls',
        data:{model:JSON.stringify({
            "orderNo":"2018112820202369593969",
            "pays":arrays
          })},
        type:'post',
        success: function (data) {
          $('#resultvaddPay').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    17、根据申请Id，同意审批 applyId
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/agreeServiceOrderUpdateApply.htmls'
  <pre>

data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
  </pre>
  <div>结果</div><div id="resultagreeServiceOrderUpdateApply"></div>
  </p>
  <button id="agreeServiceOrderUpdateApply" value="agreeServiceOrderUpdateApply">同意审批</button>
  <script>
    var agreeServiceOrderUpdateApply = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/agreeServiceOrderUpdateApply.htmls',
        data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
        type:'post',
        success: function (data) {
          $('#resultagreeServiceOrderUpdateApply').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    18、根据申请Id，拒绝审批 applyId
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/rejectServiceOrderUpdateApply.htmls'
  <pre>

data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
  </pre>
  <div>结果</div><div id="resultrejectServiceOrderUpdateApply"></div>
  </p>
  <button id="rejectServiceOrderUpdateApply" value="rejectServiceOrderUpdateApply">拒绝审批</button>
  <script>
    var rejectServiceOrderUpdateApply = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/rejectServiceOrderUpdateApply.htmls',
        data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
        type:'post',
        success: function (data) {
          $('#resultrejectServiceOrderUpdateApply').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    19、根据订单OrderNo，确认订单
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateOrderToConfirm.htmls'
  <pre>

data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
  </pre>
  <div>结果</div><div id="resultupdateOrderToConfirm"></div>
  </p>
  <button id="updateOrderToConfirm" value="updateOrderToConfirm">确认订单</button>
  <script>
    var updateOrderToConfirm = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateOrderToConfirm.htmls',
        data:{model:'HS2018122222145676939803'},
        type:'post',
        success: function (data) {
          $('#resultupdateOrderToConfirm').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    20、根据订单OrderNo，订单关闭
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateOrderToClose.htmls'
  <pre>

data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
  </pre>
  <div>结果</div><div id="resultupdateOrderToClose"></div>
  </p>
  <button id="updateOrderToClose" value="updateOrderToClose">关闭订单</button>
  <script>
    var updateOrderToClose = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateOrderToClose.htmls',
        data:{model:'HS2018122222062881171308'},
        type:'post',
        success: function (data) {
          $('#resultupdateOrderToClose').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <p>
    21、根据订单No，设置完成订单
    url:'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateOrderToFinish.htmls'
  <pre>

data:{model:'45258edfc1b946c1b1ca8f61a6a83fec'},
  </pre>
  <div>结果</div><div id="resultupdateOrderToFinish"></div>
  </p>
  <button id="updateOrderToFinish" value="updateOrderToFinish">完成订单</button>
  <script>
    var updateOrderToFinish = function() {
      $.ajax({

        url: 'http://localhost:8180/hclv-web/flea/hclv/serviceOrder/updateOrderToFinish.htmls',
        data:{model:'HS2018122222145676939803'},
        type:'post',
        success: function (data) {
          $('#resultupdateOrderToFinish').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <br/>
  <h3>产品代客下单</h3>
  <hr/>
  <div>2-1添加产品代课下单</div>
  基本信息：产品信息，班期信息和游客信息
  <pre>
    model:{
  prouductId:
  agencyedDept:
  timeTableId:
  provideDeptId:
  totalSale:totalCost:
  visitorIds:[]
    }
    <div>结果</div><div id="addAgencyResult"></div>
    </p>
    <button id="addAgency" value="addAgency">完成订单-------------</button>
  <script>
/*   var sss = {wxNo:"1234",personNo:"123",birthDay:"2017-09-08",sex:"男",nikeName:"测试",folk:"瑶族",educateCode:"",workCode:"",pHeight:"",pWeight:"",phone:"",marrage:"",foCode:"",houseCarInfoCode:"",choiceInfo:"",createUser:"",createTime:"",modifyUser:"",modifyTime:"",valid:"",extend1:"",extend2:"",jpgHead:""}; */
  
  var sss = {"wxNo":"o2LrN4lJHtdWi7WYJokRuxgTYSCw","personNo":"","birthDay":"","sex":"","nikeName":"","folk":"","educateCode":-1,"workCode":"","pHeight":"","pWeight":"","phone":"","marrageIn":-1,"foCode":"","houseCarInfoCode":-1,"choiceInfo":"","createUser":"","createTime":"","modifyUser":"","modifyTime":"","valid":"","extend1":"","extend2":"","jpgHead":""};
    var addAgency = function() {
      $.ajax({

        url: 'http://www.imflea.cn/m-web/flea//hclv/person/card/saveOrUpdate.htmls',
        data:{
          model:JSON.stringify(sss)
        },
        type:'json',
        success: function (data) {
          $('#addAgencyResult').text(JSON.stringify(data.model));
        }
      })
    }
  </script>
  <br/>
  </pre>







</div>


</body>
</html>